/* eslint-disable no-undef */
/* eslint-disable object-curly-newline */
module.exports = {
  module: {
    rules: [{
      test: /\.less$/,
      // eslint-disable-next-line quotes
      loader: "style-loader!css-loader!less-loader"
    },
    {
      test: /\.(ttf|eot|woff|woff2|svg)$/,
      use: ['file-loader']
    },
    {
      test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
      loader: ['url-loader?limit=10000&name=' + utils.assetsPath('img/[name].[hash:7].[ext]'),
        'image-webpack-loader'
      ]
    }
    ]
  },
  plugins: [
    new HtmlWebpackPlugin({
      filename: 'index.html',
      template: 'index.html',
      inject: true,
      favicon: './favicon.ico'
    })
  ]
}
